package cn.com.taurus.impl;

import cn.com.taurus.bean.FundAndFundTypeBean;
import cn.com.taurus.entity.Fund;
import cn.com.taurus.entity.FundAndFundManager;
import cn.com.taurus.entity.FundAndFundType;
import cn.com.taurus.mapper.FundAndFundTypeMapper;
import cn.com.taurus.service.FundAndFundTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author ljs
 * @createTime 2021年7月1日17:18:40
 * @remark 基金类型实现类
 * @version 1.0
 */
@Service
public class FundAndFundTypeImpl implements FundAndFundTypeService {
    @Autowired
    private FundAndFundTypeMapper fundAndFundTypeMapper;

    @Override
    public List<FundAndFundTypeBean> selectAllFundAndFundType() {
        return fundAndFundTypeMapper.selectAllFundAndFundType();
    }

    @Override
    public List<FundAndFundTypeBean> selectConditionFundAndFundType(FundAndFundTypeBean fundAndFundTypeBean) {
        return fundAndFundTypeMapper.selectConditionFundAndFundType(fundAndFundTypeBean);
    }

    @Override
    public FundAndFundTypeBean selectOneFundAndFundType(String fId) {
        return fundAndFundTypeMapper.selectOneFundAndFundType(fId);
    }

    @Override
    public int updateFund(Fund fund) {
        return fundAndFundTypeMapper.updateFund(fund);
    }

    @Override
    public int updateFundAndFundType(FundAndFundTypeBean fundAndFundTypeBean) {
        return fundAndFundTypeMapper.updateFundAndFundType(fundAndFundTypeBean);
    }

    @Override
    public int deleteFundAndFundType(FundAndFundTypeBean fundAndFundTypeBean) {
        return fundAndFundTypeMapper.deleteFundAndFundType(fundAndFundTypeBean);
    }

    @Override
    public int addFundAndFundType(FundAndFundTypeBean fundAndFundTypeBean) {
        return fundAndFundTypeMapper.addFundAndFundType(fundAndFundTypeBean);
    }
    @Override
    public int selectFundType(String ftName){
        return fundAndFundTypeMapper.selectFundType(ftName);
    }
}
